package com.example.java2e.Dao;

import com.example.java2e.Entity.Driver;
import com.example.java2e.Entity.Manager;
import com.example.java2e.Entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;

// 数据层
@Mapper//不标的话 serviceImpl无法自动注入
public interface UserDao {
    public User selectUserByTel(String tel);
    public User selectUserById(String id);
    public void deleteUserById(String id);
    public void registerNewUser(User new_user);
    public Manager selectManagerByTel(String tel);
    public Manager selectManagerById(String id);
    public void deleteManagerById(String id);
    public void registerNewManager(Manager new_manager);
    public Driver selectDriverById(String id);
    public void deleteDriverById(String id);
    public ArrayList<Driver> selectDriverList();
    public void registerNewDriver(Driver new_driver);
}
